package test
import net.liftweb.json._

/**
 * 5/5/15 WilliamZhu(allwefantasy@gmail.com)
 */
object Main {
  implicit val formats = DefaultFormats
  def main(args:Array[String]):Unit = {
    val json = "{\n    \"$outer\": {\n        \"conf\": {}\n    },\n    \"appInfo\": {\n        \"appName\": \"zookeeper\",\n        \"version\": \"3.4.6\",\n        \"installPath\": \"/data/1/usr/local\"\n    },\n    \"hosts\": [\n        \"allwefantasy\"\n    ]\n}"
    val abc = parse(json)
    val kk = abc \ "hosts"
    println(kk.extract[List[String]])
  }
}
